gtk4.git
4 years agoboxlayout: Split loop into if statmement
Benjamin Otte [Tue, 9 Nov 2021 00:59:08 +0000 (01:59 +0100)]
boxlayout: Split loop into if statmement

Turns it into 2 loops, one for the homogeneous part and one for the
complicated part.

4 years agoboxlayout: Don't listen to comments
Benjamin Otte [Mon, 8 Nov 2021 16:49:15 +0000 (17:49 +0100)]
boxlayout: Don't listen to comments

... when they are wrong.

Instead, remove them.

Or in other words: GTK4 does not have a fill child property anymore, so
we don't need to run the measuring loop above to determine the size.

4 years agoRevert "sizerequest: Only check reported baselines if requested"
Benjamin Otte [Sat, 6 Nov 2021 17:26:41 +0000 (18:26 +0100)]
Revert "sizerequest: Only check reported baselines if requested"

This reverts commit cf7fa931d380c6d205478c87f0f3973f496f9d2a.

We store the baseline in the cache and we do not know if baselines might
be queried in the future. So always store them.

No reftest because I don't know how to write one.

premature optimization == √😈

4 years agodemos: Update for climate change and Covid
Benjamin Otte [Sat, 6 Nov 2021 15:39:01 +0000 (16:39 +0100)]
demos: Update for climate change and Covid

4 years agolabel: max-width-chars should be ignored sometimes
Benjamin Otte [Sat, 6 Nov 2021 15:25:11 +0000 (16:25 +0100)]
label: max-width-chars should be ignored sometimes

When a widget is neither wrappable nor ellipsizable, we cannot modify
the label to fit into any size. So we cannot respect max-width-chars.

4 years agolabel: max-width-chars has no effect on smaller text
Benjamin Otte [Sat, 6 Nov 2021 15:17:59 +0000 (16:17 +0100)]
label: max-width-chars has no effect on smaller text

Having a short text and a large max-width-chars should request the
natural width of the text, not the limit from max-width-chars.

This caused huge message dialogs.

Reftests added.

4 years agoUpdate Catalan translation
Jordi Mas i Hernandez [Mon, 8 Nov 2021 20:35:15 +0000 (20:35 +0000)]
Update Catalan translation

4 years agoUpdate Catalan translation
Jordi Mas i Hernandez [Mon, 8 Nov 2021 19:58:52 +0000 (19:58 +0000)]
Update Catalan translation

4 years agoMerge branch 'small-caps' into 'master'
Matthias Clasen [Mon, 8 Nov 2021 19:39:55 +0000 (19:39 +0000)]
Merge branch 'small-caps' into 'master'

Handle new pango api

See merge request GNOME/gtk!4137

4 years agoBump the pango requirement to 1.49.3
Matthias Clasen [Mon, 8 Nov 2021 13:10:33 +0000 (08:10 -0500)]
Bump the pango requirement to 1.49.3

Required for new PangoVariant enumeration values.

4 years agocss: Change the way case variants are handled
Matthias Clasen [Mon, 8 Nov 2021 13:08:19 +0000 (08:08 -0500)]
css: Change the way case variants are handled

Instead of translating font-variant-caps directly
to OpenType features, translate them to a PangoVariant,
now that that enumeration reflects all the css values.

This allows pango to emulate Small Caps for fonts that
don't support the OpenType feature.

4 years agoHandle new pango api
Matthias Clasen [Mon, 8 Nov 2021 13:07:35 +0000 (08:07 -0500)]
Handle new pango api

The PangoVariant enumeration has gained new values
to match css. Handle those in switches.

4 years agotextview: Don't leave embedded children behind
Matthias Clasen [Fri, 5 Nov 2021 22:54:06 +0000 (18:54 -0400)]
textview: Don't leave embedded children behind

When scrolling embedded widgets out of view,
they sometimes get left behind because we don't
reallocated them. To avoid that, move _all_ children
out of view in size_allocate, and let the current
child allocation plumbing move the visible ones
back in place.

4 years agoRemove a confusing comment
Matthias Clasen [Fri, 5 Nov 2021 19:37:52 +0000 (15:37 -0400)]
Remove a confusing comment

It talks about propagating to unanchored children,
but then iterates over anchored_children. That does
not add up.

4 years agogtk-demo: Avoid a missing icon
Matthias Clasen [Fri, 5 Nov 2021 19:26:27 +0000 (15:26 -0400)]
gtk-demo: Avoid a missing icon

The hypertext demo was using an icon that we no longer
include in our embedded icon theme. Use a different one.

4 years agoMerge branch 'forward-port-mr-3931-to-gtk4' into 'master'
Luca Bacci [Mon, 8 Nov 2021 18:55:07 +0000 (18:55 +0000)]
Merge branch 'forward-port-mr-3931-to-gtk4' into 'master'

Remove the GdkWin32 global screen offset

Closes #4348 and #1477

See merge request GNOME/gtk!4104

4 years agoUpdate Portuguese translation
Hugo Carvalho [Mon, 8 Nov 2021 11:27:19 +0000 (11:27 +0000)]
Update Portuguese translation

4 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 8 Nov 2021 09:32:50 +0000 (10:32 +0100)]
Updated Spanish translation

4 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Sun, 7 Nov 2021 23:40:14 +0000 (23:40 +0000)]
Merge branch 'ebassi/for-master' into 'master'

docs: Fix typo in link

See merge request GNOME/gtk!4135

4 years agodocs: Fix typo in link
Emmanuele Bassi [Sun, 7 Nov 2021 23:23:36 +0000 (23:23 +0000)]
docs: Fix typo in link

4 years agoUpdate Portuguese translation
Hugo Carvalho [Sun, 7 Nov 2021 21:30:40 +0000 (21:30 +0000)]
Update Portuguese translation

4 years agoUpdate Portuguese translation
Hugo Carvalho [Sun, 7 Nov 2021 21:27:49 +0000 (21:27 +0000)]
Update Portuguese translation

4 years agoMerge branch 'ebassi/docs-link-fixes' into 'master'
Emmanuele Bassi [Sun, 7 Nov 2021 19:08:16 +0000 (19:08 +0000)]
Merge branch 'ebassi/docs-link-fixes' into 'master'

docs: Fix wrong fragments in type links

See merge request GNOME/gtk!4134

4 years agodocs: Fix wrong fragments in type links
Emmanuele Bassi [Sun, 7 Nov 2021 18:22:10 +0000 (18:22 +0000)]
docs: Fix wrong fragments in type links

Due to a bug in gi-docgen we're not getting a warning if a fragment to a
type does not match the actual type, and we're generating a broken link.

See: https://gitlab.gnome.org/GNOME/gi-docgen/-/merge_requests/120

4 years agoMerge branch 'these-are-flags' into 'master'
Emmanuele Bassi [Sun, 7 Nov 2021 18:21:28 +0000 (18:21 +0000)]
Merge branch 'these-are-flags' into 'master'

docs: Tag Gdk.ModifierType as flags

See merge request GNOME/gtk!4133

4 years agoGdkWin32: Remove the global screen offset
Luca Bacci [Fri, 29 Oct 2021 16:39:52 +0000 (18:39 +0200)]
GdkWin32: Remove the global screen offset

Removes the _gdk_offset_x / _gdk_offset_y variables,
as today are not needed anymore.

4 years agoGdkWin32: Use a signed integral type for the DPI scale
Luca Bacci [Fri, 29 Oct 2021 15:54:10 +0000 (17:54 +0200)]
GdkWin32: Use a signed integral type for the DPI scale

4 years agodocs: Tag Gdk.ModifierType as flags
Marco Melorio [Sun, 7 Nov 2021 17:14:15 +0000 (18:14 +0100)]
docs: Tag Gdk.ModifierType as flags

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sat, 6 Nov 2021 04:16:55 +0000 (04:16 +0000)]
Update Ukrainian translation

4 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Sat, 6 Nov 2021 03:54:08 +0000 (03:54 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

boxlayout: Be more careful with what to consider natural size

See merge request GNOME/gtk!4129

4 years agoreftests: Add reftest for last 2 issues
Benjamin Otte [Sat, 6 Nov 2021 02:38:03 +0000 (03:38 +0100)]
reftests: Add reftest for last 2 issues

Use a label that is long enough to require wrapping and force it into a
hardcoded width. Use a sentence where all the words have the same size
to not get unwanted wrapping behavior.

Also append a 2nd row to check that the first row gets the proper height
allocated.

Found by Marco Melorio.

4 years agolabel: Don't deduce label width from logical rect
Benjamin Otte [Sat, 6 Nov 2021 02:15:04 +0000 (03:15 +0100)]
label: Don't deduce label width from logical rect

The width of a logical rect after line breaking is sometimes not
wide enough to cause line breaking to break at the exact same points.
(Is that by design or a bug in Pango? I don't know.)

So don't use the width, and only relyon values we actually set to
pango_layout_set_width().

4 years agoboxlayout: Be more careful with what to consider natural size
Benjamin Otte [Fri, 5 Nov 2021 23:56:11 +0000 (00:56 +0100)]
boxlayout: Be more careful with what to consider natural size

Don't just use the natural size as the max size, the natural size
is the ideal size, not necessarily the maximum size.

Also check the nat size for opposite min size.

4 years agoMerge branch 'remove_some_unused_declarations' into 'master'
Matthias Clasen [Fri, 5 Nov 2021 23:08:56 +0000 (23:08 +0000)]
Merge branch 'remove_some_unused_declarations' into 'master'

remove some unused declarations

See merge request GNOME/gtk!4125

4 years agoMerge branch 'wip/baedert/for-master' into 'master'
Matthias Clasen [Fri, 5 Nov 2021 23:08:28 +0000 (23:08 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'

paned: Don't pass values < -1 to gtk_widget_measure()

Closes #4404

See merge request GNOME/gtk!4126

4 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Fri, 5 Nov 2021 22:11:00 +0000 (22:11 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

Revert "label: Never measure more than max-width-chars"

Closes #4399

See merge request GNOME/gtk!4120

4 years agopicture: Setting can-shrink requires a resize
Benjamin Otte [Fri, 5 Nov 2021 19:51:00 +0000 (20:51 +0100)]
picture: Setting can-shrink requires a resize

So queue one.

4 years agoMerge branch 'yurchor-master-patch-77064' into 'master'
Matthias Clasen [Fri, 5 Nov 2021 19:41:05 +0000 (19:41 +0000)]
Merge branch 'yurchor-master-patch-77064' into 'master'

Fix minor typo: Unsupportd -> Unsupported

See merge request GNOME/gtk!4127

4 years agoboxlayout: Compute opposite size properly
Benjamin Otte [Fri, 5 Nov 2021 19:30:49 +0000 (20:30 +0100)]
boxlayout: Compute opposite size properly

For size -1 in the opposite orientation, GtkBoxLayout used to measure
the children based on their min size in the box's orientation instead of
-1. That wasn't really intended, but was a side effect of how the sizing
code did (not) distribute extra size above the minimum size.

This is clearly not what we want.
What we want is measuring the orientation as is for size -1. Then we
want to just take the maximum of all children and use that.

A reftest is incldued that ensures a vbox wraps a label just like an
hbox does.

4 years agolabel: Redo measure() code
Benjamin Otte [Thu, 4 Nov 2021 14:56:37 +0000 (15:56 +0100)]
label: Redo measure() code

The old code couldn't properly do height-for-width because it only
computed the widest and smallest layout instead of looking at the actual
passed in for-size.

The label-sizing reftest has been adapted as the label code is now smart
enough to always display the whole text and no longer requests a too
small width-for-single-row when wrapping.

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Fri, 5 Nov 2021 18:46:16 +0000 (18:46 +0000)]
Update Ukrainian translation

4 years agoFix minor typo: Unsupportd -> Unsupported
Yuri Chornoivan [Fri, 5 Nov 2021 18:42:20 +0000 (18:42 +0000)]
Fix minor typo: Unsupportd -> Unsupported

4 years agoMerge branch 'wip/carlosg/no-ping-serials-for-input' into 'master'
Matthias Clasen [Fri, 5 Nov 2021 18:34:02 +0000 (18:34 +0000)]
Merge branch 'wip/carlosg/no-ping-serials-for-input' into 'master'

gdk/wayland: Do not use xdg_wm_base.ping serials as "user input" serials

See merge request GNOME/gtk!4122

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Fri, 5 Nov 2021 18:31:16 +0000 (18:31 +0000)]
Update Ukrainian translation

4 years agopaned: Don't pass values < -1 to gtk_widget_measure()
Timm Bäder [Fri, 5 Nov 2021 16:41:08 +0000 (17:41 +0100)]
paned: Don't pass values < -1 to gtk_widget_measure()

Fixes #4404

4 years agoremove some unused declarations
Caolán McNamara [Fri, 5 Nov 2021 14:03:47 +0000 (14:03 +0000)]
remove some unused declarations

4 years agogdk/wayland: Do not use xdg_wm_base.ping serials as "user input" serials
Carlos Garnacho [Thu, 4 Nov 2021 13:40:21 +0000 (14:40 +0100)]
gdk/wayland: Do not use xdg_wm_base.ping serials as "user input" serials

Ping/pong serials are not meant to be interpreted as user input serials
(e.g. those given back later to the compositor on grabs). As a matter
of fact, Mutter uses a different count (i.e. timestamps) in these, so
using these serials may confuse the compositor into denying certain
operations like DnD.

4 years agoRevert "label: Never measure more than max-width-chars"
Benjamin Otte [Thu, 4 Nov 2021 12:28:45 +0000 (13:28 +0100)]
Revert "label: Never measure more than max-width-chars"

This reverts commit ba44e7a228534ff066694ad97d25eaa23ec5f3af.

The change was meant to revert to old GTK3 behavior but it actually
broke new GTK4 behavior that is in use where max-width-chars is used to
determine an ideal size, but where we don't want to limit the width to
that size.

So what happens is the reintroduction of GTK3-style lots of whitepsace
bugs, and we really don't want those.

We also don't want to break backwards compat if we can avoid it.

So let's revert this.

The reftest that was made for this purpose has been adapted.

Fixes #4399

4 years agoMerge branch 'ebassi/cross-bundle' into 'master'
Matthias Clasen [Thu, 4 Nov 2021 18:11:40 +0000 (18:11 +0000)]
Merge branch 'ebassi/cross-bundle' into 'master'

build: Don't use ld when cross-compiling

See merge request GNOME/gtk!4121

4 years agobuild: Don't use ld when cross-compiling
Emmanuele Bassi [Thu, 4 Nov 2021 13:41:35 +0000 (13:41 +0000)]
build: Don't use ld when cross-compiling

We can't guarantee anything on the target toolchain, in that case.

4 years agoMerge branch 'taozuhong-master-patch-22982' into 'master'
Matthias Clasen [Thu, 4 Nov 2021 11:06:44 +0000 (11:06 +0000)]
Merge branch 'taozuhong-master-patch-22982' into 'master'

Make dialog content_area box as vertical, keep compatibility with GTK3

See merge request GNOME/gtk!4119

4 years agoUpdate gtk/ui/gtkdialog.ui
TAO ZUHONG [Thu, 4 Nov 2021 08:25:03 +0000 (08:25 +0000)]
Update gtk/ui/gtkdialog.ui

4 years agoMake dialog content_area box as vertical, keep compatibility with GTK3
TAO ZUHONG [Thu, 4 Nov 2021 08:23:04 +0000 (08:23 +0000)]
Make dialog content_area box as vertical, keep compatibility with GTK3

4 years agoMerge branch 'listview-sink-adjustment' into 'master'
Matthias Clasen [Thu, 4 Nov 2021 01:58:56 +0000 (01:58 +0000)]
Merge branch 'listview-sink-adjustment' into 'master'

listbase: Sink adjustments

Closes #4403

See merge request GNOME/gtk!4117

4 years agoMerge branch 'activate-signal-dropdown-combobox' into 'master'
Matthias Clasen [Thu, 4 Nov 2021 01:19:43 +0000 (01:19 +0000)]
Merge branch 'activate-signal-dropdown-combobox' into 'master'

Add activate signal to DropDown and ComboBox

See merge request GNOME/gtk!3935

4 years agoMerge branch 'reftest-no-blink' into 'master'
Matthias Clasen [Thu, 4 Nov 2021 01:15:31 +0000 (01:15 +0000)]
Merge branch 'reftest-no-blink' into 'master'

testsuite: Set GDK_DEBUG unconditionally

See merge request GNOME/gtk!4116

4 years agolistbase: Sink adjustments
Matthias Clasen [Thu, 4 Nov 2021 01:08:46 +0000 (21:08 -0400)]
listbase: Sink adjustments

gtk_adjustment_new returns floating objects.
Sink them.

Fixes: #4403
4 years agoreftest: No blinking, please
Matthias Clasen [Thu, 4 Nov 2021 00:43:01 +0000 (20:43 -0400)]
reftest: No blinking, please

Blinking cursors aren't helpful when we want to
compare renderings pixel-by-pixel. Turn them off.

4 years agoreftest: Stop setting GDK_RENDERING
Matthias Clasen [Thu, 4 Nov 2021 00:40:22 +0000 (20:40 -0400)]
reftest: Stop setting GDK_RENDERING

That environment variable isn't used anymore.

4 years agotestsuite: Set GDK_DEBUG unconditionally
Matthias Clasen [Thu, 4 Nov 2021 00:39:33 +0000 (20:39 -0400)]
testsuite: Set GDK_DEBUG unconditionally

The default-settings key works in non-debug builds
too, nowadays.

4 years agocombo_box: Use mnemonic_activate on override
Maximiliano Sandoval R [Sun, 3 Oct 2021 16:00:23 +0000 (18:00 +0200)]
combo_box: Use mnemonic_activate on override

This is changing the existing behavior where the mnemonic activation
would just grab the focus of the button, this was the behavior in GTK 3.

4 years agodropdown: Make DropDown activatable
Maximiliano Sandoval R [Fri, 10 Sep 2021 13:42:47 +0000 (15:42 +0200)]
dropdown: Make DropDown activatable

The activation is simply forwarded to the button
within.

4 years agocombobox: Make combo box activatable
Maximiliano Sandoval R [Fri, 10 Sep 2021 13:42:15 +0000 (15:42 +0200)]
combobox: Make combo box activatable

The activation is simply forwarded to the button
within.

4 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Wed, 3 Nov 2021 22:22:30 +0000 (22:22 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

egl: Set the draw buffer to GL_BACK_LEFT

Closes #4402

See merge request GNOME/gtk!4114

4 years agomacos: Fix return value
Benjamin Otte [Wed, 3 Nov 2021 21:53:31 +0000 (22:53 +0100)]
macos: Fix return value

4 years agogdk: #if => #ifdef
Benjamin Otte [Wed, 3 Nov 2021 21:51:39 +0000 (22:51 +0100)]
gdk: #if => #ifdef

Makes compilers happy

4 years agogl: Use GL_BACK_LEFT
Benjamin Otte [Wed, 3 Nov 2021 18:49:08 +0000 (19:49 +0100)]
gl: Use GL_BACK_LEFT

The spec doesn't allow GL_BACK, but many drivers do. Use the
spec-accepted equivalent instead.

Fixed #4402

4 years agoegl: Set the draw buffer to GL_BACK_LEFT
Benjamin Otte [Wed, 3 Nov 2021 18:49:57 +0000 (19:49 +0100)]
egl: Set the draw buffer to GL_BACK_LEFT

Instead of using GL_BACK, use GL_BACK_LEFT, because the spec demands
this (many drivers don't).

Also move the call from the GDK backends into the GLContext code, as
this is a generic EGL issue (nvidia being the main driver in need of
this call, see 9c4c4eaaa121d784f591a591b95264647eaece96 for a longer
discussion).

Fixes #4402

4 years agoMerge branch 'small-check' into 'master'
Matthias Clasen [Mon, 1 Nov 2021 19:38:55 +0000 (19:38 +0000)]
Merge branch 'small-check' into 'master'

icon: revert object-symbolic check to be smaller

See merge request GNOME/gtk!4110

4 years agoicon: revert object-symbolic check to be smaller
Tobias Bernard [Mon, 1 Nov 2021 17:54:22 +0000 (18:54 +0100)]
icon: revert object-symbolic check to be smaller

The larger check works well in the headerbar, but not inline in various UI elements. This reverts the larger check since the latter is more common. For selection mode, a separate larger icon (selection-mode-symbolic) has been added to adwaita-icon-theme.

4 years agoMerge branch 'ci-require-macos' into 'master'
Matthias Clasen [Mon, 1 Nov 2021 15:22:53 +0000 (15:22 +0000)]
Merge branch 'ci-require-macos' into 'master'

Revert "ci: Allow macos to fail"

See merge request GNOME/gtk!4109

4 years agoRevert "ci: Allow macos to fail"
Matthias Clasen [Mon, 1 Nov 2021 14:33:09 +0000 (10:33 -0400)]
Revert "ci: Allow macos to fail"

This reverts commit b7cab5c5ebd50e8102938ea87cedc48670837f4b.

We welcome the macos runner back.

4 years agoMerge branch 'build-fix' into 'master'
Emmanuele Bassi [Mon, 1 Nov 2021 13:27:13 +0000 (13:27 +0000)]
Merge branch 'build-fix' into 'master'

build: Collect gi-docgen's common arguments

See merge request GNOME/gtk!4108

4 years agobuild: Collect gi-docgen's common arguments
Emmanuele Bassi [Mon, 1 Nov 2021 13:00:51 +0000 (13:00 +0000)]
build: Collect gi-docgen's common arguments

And only enable `--fatal-warnings` if `-Dwerror` has been set, just like
we do for the introspection data generation.

4 years agodocs: Add missing annotation
Emmanuele Bassi [Mon, 1 Nov 2021 12:54:35 +0000 (12:54 +0000)]
docs: Add missing annotation

4 years agodocs: Fix link to g_signal_emit()
Emmanuele Bassi [Mon, 1 Nov 2021 12:54:07 +0000 (12:54 +0000)]
docs: Fix link to g_signal_emit()

4 years agoMerge branch 'fix_typo' into 'master'
Timm Bäder [Mon, 1 Nov 2021 06:42:54 +0000 (06:42 +0000)]
Merge branch 'fix_typo' into 'master'

fix typo in GtkDragSource doc

See merge request GNOME/gtk!4107

4 years agofix typo in GtkDragSource doc
Alexandros Theodotou [Mon, 1 Nov 2021 03:48:52 +0000 (03:48 +0000)]
fix typo in GtkDragSource doc

GtkDrag => GdkDrag

4 years agoUpdate Latvian translation
Rūdolfs Mazurs [Sun, 31 Oct 2021 14:59:22 +0000 (14:59 +0000)]
Update Latvian translation

(cherry picked from commit d67982d5e0d894aca1a61f5f7d26b8164f6842ae)

4 years agoMerge branch 'bilelmoussaoui/gi-docgen' into 'master'
Timm Bäder [Sat, 30 Oct 2021 10:06:35 +0000 (10:06 +0000)]
Merge branch 'bilelmoussaoui/gi-docgen' into 'master'

gtk: fix broken gi-docgen annotation in IconView

See merge request GNOME/gtk!4106

4 years agogtk: fix broken gi-docgen annotation in IconView
Bilal Elmoussaoui [Sat, 30 Oct 2021 09:37:12 +0000 (09:37 +0000)]
gtk: fix broken gi-docgen annotation in IconView

4 years ago4.5.0
Matthias Clasen [Fri, 29 Oct 2021 20:02:47 +0000 (16:02 -0400)]
4.5.0

4 years agoMerge branch 'bilelmoussaoui/docs-typo' into 'master'
Matthias Clasen [Fri, 29 Oct 2021 19:53:34 +0000 (19:53 +0000)]
Merge branch 'bilelmoussaoui/docs-typo' into 'master'

gtk: remove unneeded backtick from gi-docgen item

See merge request GNOME/gtk!4105

4 years agogtk: remove unneeded backtick from gi-docgen item
Bilal Elmoussaoui [Fri, 29 Oct 2021 18:32:06 +0000 (18:32 +0000)]
gtk: remove unneeded backtick from gi-docgen item

4 years agoNEWS: Updates
Matthias Clasen [Fri, 29 Oct 2021 17:19:22 +0000 (13:19 -0400)]
NEWS: Updates

4 years agoUpdate Catalan translation
Jordi Mas i Hernandez [Fri, 29 Oct 2021 11:45:56 +0000 (11:45 +0000)]
Update Catalan translation

(cherry picked from commit ca02700a63b164a4670d0cde60bb0c279c7c4ec8)

4 years agoMerge branch 'ebassi/editor-config' into 'master'
Matthias Clasen [Thu, 28 Oct 2021 18:28:47 +0000 (18:28 +0000)]
Merge branch 'ebassi/editor-config' into 'master'

Add editorconfig file

See merge request GNOME/gtk!4102

4 years agoAdd editorconfig file
Emmanuele Bassi [Thu, 28 Oct 2021 17:17:02 +0000 (18:17 +0100)]
Add editorconfig file

Editors that support configuration through the editorconfig spec:

  https://editorconfig.org

should be able to have a subset of the GTK coding style and options
immediately available to them.

Plus, it's better than using relics from the Dark Ages, like modelines.

4 years agoMerge branch 'x11-xi2.4-gestures' into 'master'
Carlos Garnacho [Thu, 28 Oct 2021 16:44:52 +0000 (16:44 +0000)]
Merge branch 'x11-xi2.4-gestures' into 'master'

Touchpad gestures for X11 (XInput 2.4, X Server 21.1)

See merge request GNOME/gtk!3610

4 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Thu, 28 Oct 2021 13:16:25 +0000 (13:16 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

cssparser: Remove unused argument

Closes #4381

See merge request GNOME/gtk!4101

4 years agobroadway: fix texture upload
Benjamin Otte [Thu, 28 Oct 2021 12:48:20 +0000 (14:48 +0200)]
broadway: fix texture upload

This was carelessly broken by me in 5b473911.

While fixing it anyway, at some support for better error handling.

Fixes #4381

4 years agocssparser: Remove unused argument
Benjamin Otte [Thu, 28 Oct 2021 01:13:28 +0000 (03:13 +0200)]
cssparser: Remove unused argument

The base_directory argument is never used. So don't have it.

4 years agoMerge branch 'gtkeventcontroller.c-fix' into 'master'
Matthias Clasen [Wed, 27 Oct 2021 23:50:13 +0000 (23:50 +0000)]
Merge branch 'gtkeventcontroller.c-fix' into 'master'

master: premature controller unreferencing in gtk_event_controller_handle_event

See merge request GNOME/gtk!4099

4 years agoMerge branch 'rgba-for-master' into 'master'
Matthias Clasen [Wed, 27 Oct 2021 23:27:42 +0000 (23:27 +0000)]
Merge branch 'rgba-for-master' into 'master'

docs: standard names are CSS names, not X11 names

See merge request GNOME/gtk!4100

4 years agogtk: Hold reference on controller until events are fully handled
Maxim Zakharov [Wed, 27 Oct 2021 00:37:36 +0000 (11:37 +1100)]
gtk: Hold reference on controller until events are fully handled

Fixes premature controller unreferencing in
gtk_event_controller_handle_event() if the controller itself is being
removed while handling the event.

4 years agodocs: standard names are CSS names, not X11 names
Benjamin Otte [Wed, 27 Oct 2021 22:12:58 +0000 (22:12 +0000)]
docs: standard names are CSS names, not X11 names

We updated Pango a while ago to use these more common names, but apparently forgot the docs.

4 years agoMerge branch 'wip/chergert/use-fabs-in-macos' into 'master'
Matthias Clasen [Wed, 27 Oct 2021 19:37:01 +0000 (19:37 +0000)]
Merge branch 'wip/chergert/use-fabs-in-macos' into 'master'

macos: fix scale on macOS 12 beta

See merge request GNOME/gtk!4065

4 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Tue, 26 Oct 2021 23:43:46 +0000 (23:43 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

gdktypes: Remove GDK_EXTERN_VAR

Closes #4373

See merge request GNOME/gtk!4097

4 years agocss: Don't throw warnings on broken URL in image css
Benjamin Otte [Tue, 26 Oct 2021 15:02:56 +0000 (17:02 +0200)]
css: Don't throw warnings on broken URL in image css

If a URL can't be loaded, we might end up with a NULL file. Handle that
case properly by creating an invalid image instead and don't crash or
complain to stderr when files are NULL.

This was broken since 0886ade182f1a958024202d5c20248d57fcdb053

A new reftest has been included. We need a reftest instead of a
CSS parser test, because the error only becomes visible when
compute()ing the actual image.

Fixes #4373

4 years agogdk: Split enums from types
Benjamin Otte [Mon, 25 Oct 2021 00:14:18 +0000 (02:14 +0200)]
gdk: Split enums from types

Add gdkenums.h for enums and keep gdktypes.h for types.

Makes both files easier to read.